for i in range(11):
    print(i, end=' ')
print()
i = 0
while i < 11:
    print(i, end=" ")
    i += 1